package org.yccloud.yc.demo.kt.model


class Person(val name: String) {
    val children: MutableList<Person> = mutableListOf()

    constructor(name: String, parent: Person) : this(name) {
        parent.children.add(this)
    }

    override fun toString(): String {
        return this.name.plus(this.children.toString())
    }
}